<?php

namespace app\office\model;

use think\Model;

class DocumentProcess extends Model
{
    //在模块内再次确保开启自动时间戳;
    protected $autoWriteTimestamp='datetime';
    
    //设置自动时间戳格式为datetime格式;
    protected $type=[
      'create_time'=>'datetime',
      'update_time'=>'datetime',
    ];
    
    //增加记录时,自动设置is_fixed;
    protected $insert=[
      'is_fixed'  =>  0,
    ];
    
}
